/* checkout.css */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header h1 {
    color: #333;
    margin-bottom: 20px;
}

.checkout-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.checkout-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.checkout-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.address-item:hover {
    border-color: #c0392b;
}

.address-item.selected {
    border-color: #c0392b;
    background-color: #f9f9f9;
}

.address-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.address-info h4 span {
    margin-left: 10px;
    color: #666;
    font-weight: normal;
}

.address-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.default-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c0392b;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.order-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.order-item-price {
    color: #c0392b;
    font-weight: bold;
}

.order-item-quantity {
    color: #666;
}

.checkout-summary {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.summary-item.total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.submit-order-btn {
    width: 100%;
    padding: 12px;
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.submit-order-btn:hover {
    background: #a5281b;
}

.no-address {
    text-align: center;
    padding: 30px;
}

.no-address p {
    margin-bottom: 15px;
    color: #666;
}

.no-address button {
    padding: 8px 15px;
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* 地址列表样式 */
.address-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.address-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.address-item:hover {
    border-color: #1890ff;
}

.address-item.selected {
    border-color: #1890ff;
    background-color: #f0f7ff;
}

.address-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.address-info h4 span {
    margin-left: 15px;
    color: #666;
}

.address-info p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.default-tag {
    position: absolute;
    right: 15px;
    top: 15px;
    background-color: #1890ff;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* 订单商品列表样式 */
.order-items-list {
    margin-bottom: 20px;
}

.order-items-list table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-list th, .order-items-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.order-items-list th {
    background-color: #f5f5f5;
    font-weight: 500;
}

.order-item-info {
    display: flex;
    align-items: center;
}

.order-item-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 4px;
    object-fit: cover;
}

.order-item-name {
    font-weight: 500;
}









